@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sixtyfour+Convergence&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* كلاس الخط العريض */
.font-bold {
    font-weight: 700;
}

.font-italic {
    font-style: italic;
}

.text-underline {
    border-bottom: 2px solid red;
    padding-bottom: 3px;
}

.border-underline {
    border-bottom: 2px solid #ff0000;
    padding-bottom: 4px;
    display: inline;
}

body {
    line-height: 1.6;
    margin: 0; /* إزالة الهوامش الافتراضية للجسم لتثبيت الرسالة في الأعلى */
}
article {
  direction: ltr;
}

/* أنماط عنصر التغذية الراجعة العام */
#global-copy-feedback {
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%) translateY(-60px);
    z-index: 1000;
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    min-width: 250px; 
    padding: 12px 25px; 
    background-color: #4CAF50; 
    color: white; 
    font-family: 'Cairo', sans-serif; 
    font-size: 16px; 
    font-weight: 600; 
    text-align: center; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
}

/* الأنماط التي تطبق عند إضافة الكلاس 'show' (لإظهار الرسالة) */
#global-copy-feedback.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}



  .sss::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 70px;
    z-index: -10;
    border-top-right-radius: 30px;
    border-top-left-radius: 30px;
  }
.code-s , .code-s-2 , .code-s-3 , .Result , .Result-3 , .editor-explanation , .editor-explanation-2 , .editor-explanation-3 {
    padding: 10px;
}
.code-s , .code-s-2 , .code-s-3 , .Result, .Result-3 , .editor-explanation , .editor-explanation-2 , .editor-explanation-3 , .Component , .Component2 {
  border-radius: 20px 20px 5px 5px;
}
.Component , .Component2 {
  height: 35px;
  margin-bottom: 2px;
  align-items: center;
}
.flex-c p , .code-to-copy code , .Component2 p , .explanation p  {
 transition: all 500ms ease-in-out;
}
.code-to-copy , .Result-container , .explanation {
  height: calc(100% - 37px);
  border-radius: 5px;
}

/*                             بداية تنسيقات الاكواد                       */
.Component  {
  padding: 0px 20px;
}

.Balls {
  display: flex; gap: 6px;
}
.Balls div {
 padding: 9px;
 border-radius: 50%;
}
.Balls div:nth-child(1) { background-color:#FF5F5A ;}
.Balls div:nth-child(2) { background-color:#FFBE2E ;}
.Balls div:nth-child(3) { background-color:#2ACA44 ;}

.flex-c {
  display: flex ;
  justify-content: center
}
.flex-e {
  display: flex ;
  justify-content: end;
}
.copy-button {
  width: 16px;
  cursor: pointer;
  position: relative;
}
.copy-button::before {
  content:"نسخ الكود";
  font-family: "cairo";
  position: absolute;
  top: 29px;
  right:-19px;
  width: 70px;
  color: white;
  background-color: #666666;
  border-radius: 5px;
  font-size: 7px;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
  transition: all 200ms ease-in-out;
}
.copy-button:hover::before {
    padding: 5px;
    opacity: 1;
    visibility: visible;
    font-size: 12px;
}
.copy-button:active {
 transition: all 75ms ease-in-out;
}
.code-to-copy {
    overflow-x: auto;
    padding: 7px;
    line-height: 1.5;
    direction: ltr;
}
.code-to-copy code {
    white-space: pre; /* للحفاظ على تنسيق المسافات والأسطر الجديدة */
}

/*                             بداية تنسيقات الشرح                       */
.explanation {
    overflow-x: auto; 
    padding: 10px;
    line-height: 1.5;
}
.Component2 {
  display: flex;
  justify-content: center;
}
.explanation p {
  direction: rtl;
}












/*                            اكواد خاصة بالبحث                           */

        .search-input-wrapper {
            display: flex;
            align-items: center;
            padding: 8px;
        }
        .search-input {
          width: 100%;
            border-radius: 4px;
            padding: 6px 10px;
            outline: none;
            transition: border-color 0.2s ease-in-out;
        }
        .search-input:focus {
            border-color: #007acc; 
        }
        .search-button {
            background-color: transparent;
            border: none;
            padding: 4px 6px;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .search-button:hover:not(:disabled) {
            color: #ff0000;
        }
        .search-button.active {
            background-color: #007acc;
        }
        .search-button.active:hover {
            background-color: #007acc;
        }
        .search-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .clear-button {
            cursor: pointer;
            display: none; 
        }
        .clear-button.visible {
            display: block;
        }
        .search-options {
            display: flex;
            padding: 8px;
            justify-content: flex-end;
            align-items: center;
        }

        /* Highlight style for search results */
        .highlight {
            background-color: #5f5f00;
            color: #ffffff;
            border-radius: 2px;
            padding: 1px 2px;
        }
        .active-highlight {
            background-color: #007acc;
            color: #ffffff;
            border-radius: 2px;
            padding: 1px 2px;
            box-shadow: 0 0 0 1px #007acc;
        }






        /* تنسيق خاص للوحة الجانبية لضمان الانتقال السلس */
        .sidebar {
            /* التحويل الأولي: إخفاء اللوحة خارج الشاشة إلى اليمين */
            transform: translateX(100%);
            /* تم زيادة مدة الانتقال إلى 0.5 ثانية لجعل الحركة أبطأ وأكثر نعومة */
            transition: transform 0.5s ease-in-out, top 0.5s ease-in-out;
            z-index: 500; /* لضمان ظهورها فوق المحتوى الآخر */
            /* لم نعد نستخدم visibility: hidden هنا، سيتم التحكم بها بواسطة JavaScript */
        }

        .sidebar.open {
            /* عند الفتح: إظهار اللوحة */
            transform: translateX(0);
        }

        /* تم زيادة مدة الانتقال للموضع العلوي للزر أيضاً إلى 0.5 ثانية */
        #toggleSidebarBtn {
            transition: top 0.5s ease-in-out;
        }
/*                     اكواد خاصة بالبحث                  */




/* اكواد خاصة بزرالتحميل */


/* From Uiverse.io by andrew-demchenk0 */ 
.buttonss {
  --main-focus: #2d8cf0;
  --font-color: #dedede;
  --bg-color-sub: #222;
  --bg-color: #323232;
  --main-color: #dedede;
  position: relative;
  width: 150px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
}

.buttonss, .button__icon, .button__text {
  transition: all 0.3s;
}

.buttonss .button__text {
  transform: translateX(21px);
  color: var(--font-color);
  font-weight: 600;
}

.buttonss .button__icon {
  position: absolute;
  transform: translateX(109px);
  height: 100%;
  width: 39px;
  background-color: var(--bg-color-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttonss .svg {
  width: 20px;
  fill: var(--main-color);
}

.buttonss:hover {
  background: var(--bg-color);
}

.buttonss:hover .button__text {
  color: transparent;
}

.buttonss:hover .button__icon {
  width: 148px;
  transform: translateX(0);
}

.buttonss:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px var(--main-color);
}

.container-list {
    position: relative;
    cursor: pointer;
}
.container-list .list-s {
    position: absolute;
    width: 120px;
    border-radius: 3px;
    padding: 5px;
    display: none;
    z-index: 100;
}
.child-list  {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 2px;
    
}


.container-TERMINAL {
    position: relative;
    cursor: pointer;
}

.container-TERMINAL .list-TERMINAL {
    position: absolute;
    width: 120px;
    border-radius: 3px;
    padding: 5px;
    display: none;
    z-index: 100;
}
.list-TERMINAL p {
    padding: 3px;
}




/* تخصيص شريط التمرير بالكامل */
::-webkit-scrollbar {
  width: 3px; /* عرض شريط التمرير العمودي */
  height: 3px; /* ارتفاع شريط التمرير الأفقي */
}
@media (min-width:550px) and (max-width:991px) {
  ::-webkit-scrollbar {
  width: 4px; /* عرض شريط التمرير العمودي */
  height: 4px; /* ارتفاع شريط التمرير الأفقي */
}
}
@media (min-width:992px) {
  ::-webkit-scrollbar {
  width: 5px; /* عرض شريط التمرير العمودي */
  height: 5px; /* ارتفاع شريط التمرير الأفقي */
}
}

/* تخصيص مسار شريط التمرير */
::-webkit-scrollbar-track {
  background: #ffffff23;      
  border-radius: 10px;
}

/* تخصيص مقبض شريط التمرير */
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

/* عند تمرير الماوس فوق المقبض */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

